package com.zhangye.test.mapper;

import com.zhangye.test.model.SmsSession;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface SmsSessionMapper {
	
    int insert(SmsSession record);
    
    List<SmsSession> selectAll();
    
    int deleteByPrimaryKey(String userName);
    
    int deleteBySessionId(String sessionId);
    
    SmsSession selectByPrimaryKey(String userName);
    
    int updateByPrimaryKey(SmsSession record);
    
    int updateValueBySessionId(@Param("value") String value,@Param("sessionId") String sessionId);
    
}